package com.skyworth.web.admin.role.service;

import com.skyworth.web.admin.role.domain.RoleModel;
import com.skyworth.web.admin.role.form.RoleForm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by lxs on 2016/9/22.
 */
public interface RoleService {
	public List<RoleModel> listRole(long storeId);

	public Page<RoleModel> pageRole(long storeId, Pageable pageable);

	public RoleModel findRole(long id);

	public boolean existRole(String name, long store_id);

	public RoleModel updateRole(RoleForm roleForm);

	public void delRole(long id);

	public RoleModel addRole(RoleForm roleForm);

	void addDefaultRole(long store_id);

}
